package com.ruoyi.jiugongge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiugongge.mapper.JiugonggeRelationMapper;
import com.ruoyi.jiugongge.domain.JiugonggeRelation;
import com.ruoyi.jiugongge.service.IJiugonggeRelationService;
import com.ruoyi.common.support.Convert;

/**
 * 九宫格奖品配置 服务层实现
 * 
 * @author lzy
 * @date 2019-01-21
 */
@Service
public class JiugonggeRelationServiceImpl implements IJiugonggeRelationService 
{
	@Autowired
	private JiugonggeRelationMapper jiugonggeRelationMapper;

	/**
     * 查询九宫格奖品配置信息
     * 
     * @param id 九宫格奖品配置ID
     * @return 九宫格奖品配置信息
     */
    @Override
	public JiugonggeRelation selectJiugonggeRelationById(String id)
	{
	    return jiugonggeRelationMapper.selectJiugonggeRelationById(id);
	}
	
	/**
     * 查询九宫格奖品配置列表
     * 
     * @param jiugonggeRelation 九宫格奖品配置信息
     * @return 九宫格奖品配置集合
     */
	@Override
	public List<JiugonggeRelation> selectJiugonggeRelationList(JiugonggeRelation jiugonggeRelation)
	{
	    return jiugonggeRelationMapper.selectJiugonggeRelationList(jiugonggeRelation);
	}
	
    /**
     * 新增九宫格奖品配置
     * 
     * @param jiugonggeRelation 九宫格奖品配置信息
     * @return 结果
     */
	@Override
	public int insertJiugonggeRelation(JiugonggeRelation jiugonggeRelation)
	{
	    return jiugonggeRelationMapper.insertJiugonggeRelation(jiugonggeRelation);
	}
	
	/**
     * 修改九宫格奖品配置
     * 
     * @param jiugonggeRelation 九宫格奖品配置信息
     * @return 结果
     */
	@Override
	public int updateJiugonggeRelation(JiugonggeRelation jiugonggeRelation)
	{
	    return jiugonggeRelationMapper.updateJiugonggeRelation(jiugonggeRelation);
	}

	/**
     * 删除九宫格奖品配置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteJiugonggeRelationByIds(String ids)
	{
		return jiugonggeRelationMapper.deleteJiugonggeRelationByIds(Convert.toStrArray(ids));
	}
	
}
